The generated image contains libjpackageapplauncheraux.so that
contains a destructor function dcon(). It calls already disposed
logger, causing a crash.
Last-Update: 2024-07-18
Gbp-Pq: Name jdk-8312488.patch
time_t transition in Debian/Ubuntu left 32 bit time_t symbols in glibc.
Looking up 'futimens' via dlsym returns 32 bit version of the function.
This is causing failure to set last modified time
(e.g. instead of year 2017 we get 1976 in the test).
Using the function directly correctly calls 64 bit versions.
When we lookup functions with time_t arguments through dlsym()
calls we should use 64 bit versions.
Last-Update: 2024-07-17
Gbp-Pq: Name jdk-8336529-proposed.patch
i386 declaration of _SafeFetch32_impl contains an underscore
that causes an undefined symbol in libjvm.so.
Disable -Wl,--allow-shlib-undefined link flag that allowed the
build to succeed.
ARM64 requires cds alignment option to be enabled if CDS is enabled.
Setting it to true will enable the option even if CDS is disabled
causing a configuration error. Setting option to auto allows to
enable it only when CDS is enabled.
binutils 2.39 changed the signature of init_disassemble_info,
breaking the build.
See https://lore.kernel.org/bpf/20220622231624.t63bkmkzphqvh3kx@alap3.anarazel.de/T/
Vladimir Petko [Tue, 30 Jul 2024 06:37:36 +0000 (08:37 +0200)]
print warning to install openjdk-*-jre package
Forwarded: not-needed
fontmanager support was moved to recommends, warn user to
either install -jre package or recommended packages.
Forwarding is not needed as this is a Debian-only issue.
This is a proposed fix for JDK-8242564. Javadoc option '--ignore-source-errors'
allows generating Javadoc for the packages that contain compilation errors.
jdk.javadoc.internal.doclets.toolkit.util.ClassTree generates a type hierarchy
for javadoc that may include error types such as class Foo extends Bar {}
where Bar is undefined.
The user still wants to generate documentation for Foo and have Bar as a text label.
For the unknown class Bar it is impossible to detect the enclosing class/file and
javadoc crashes with an exception.
The attach API uses /proc/pid/root in order to support containers.
Dereferencing this symlink is governed by ptrace access mode PTRACE_MODE_READ_FSCREDS
which may not succeed when running as the user running the JRE.
This breaks running jcmd and jmap as the same user the JVM is running as.
Use tmpdir when pid matches ns_pid.
From 36b554e2de46d77898be4d0feae0ee2171b445bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20L=C3=B6vdahl?= <sebastian.lovdahl@hibox.tv>
Date: Tue, 18 Apr 2023 12:50:32 +0300
Subject: [PATCH] 8226919: Fix dynamic attach in Linux for non-container
environments
OpenJDK Team [Tue, 30 Jul 2024 06:37:36 +0000 (08:37 +0200)]
Misalign address in the test rather than structure
mk68-support.diff aligned metaspace structures by 4 bytes breaking the test.
Add 1 to address type rather than aligned structure to produce misaligned pointer.
The cause is the use of dh_strip_nondeterminism late in the build
process. This reorganises the jmod files, which in turn changes their
SHA256 checksums. This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism. Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.
[ Vladimir Petko ]
* d/copyright: Regenerate copyright.
* d/watch: Use fixed googletest version.
* d/rules, d/t/*: Collate all excluded tests into d/problemlist.csv.
* d/rules: Enable fallback linker for Foreign Function and Memory API
on i386 and armhf.
* d/p/jdk-8336529-proposed.patch: Fix time_t migration issue on armhf.
openjdk is unable to set file last modified timestamp.
* d/rules: Enable fallback linker for architectures that do not
provide a native one.
* d/rules, d/control.in: Depend on pkgconf rather than pkg-config in
bookworm and later releases. This resolves lintian warning
build-depends-on-obsolete-package Build-Depends: pkg-config => pkgconf.
* d/rules: Drop autotools-dev dependency for the modern debhelper.
This resolves obsolete autotools-dev dependency lintian warning.
See #844191.
* d/t/control.in: allow stderr for smoke tests.